Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 10 - AppleTalk Addressing / AppleTalk Addressing Reference
Functions


OTInitDDPNBPAddress

Initializes a combined DDP-NBP address structure.

C INTERFACE
size_t OTInitDDPNBPAddress (DDPNBPAddress* address, 
                            const char* name, UInt16 net, UInt8 node, 
                            UInt8 socket, UInt8 ddpType);
C++ INTERFACES
None. C++ applications use the C interface to this function.

PARAMETERS
address
A pointer to the combined DDP-NBP address structure you wish to initialize.
name
A pointer to the NBP string you wish to use for the NBP name.
net
The network number you wish to specify. Set to 0 to default to the local network.
node
The node ID you wish to specify. Set to 0 to default to the
local node.
socket
The socket number you wish to specify. Set to 0 to allow Open Transport to assign a socket dynamically when you use this address to bind an endpoint.
ddpType
The DDP type you wish to specify. Set to 0 unless you are
using DDP.
DESCRIPTION
The OTInitDDPNBPAddress function initializes a combined DDP-NBP address structure with the data provided in the parameters: NBP name, network number, node ID, socket number, and DDP type. The function returns the total size of the address structure, which is the length of the name parameter plus the size of a DDPAddress structure.

SEE ALSO
The combined DDP-NBP address structure is described in the section "The Combined DDP-NBP Address Structure," beginning on page 10-17.

To initialize an NBP address, use the OTInitNBPAddress function (page 10-22).

To initialize a DDP address, use the OTInitDDPAddress function (page 10-21).

See the chapter "Datagram Delivery Protocol" in this book for more information about the DDP type.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996